package com.zhx.real.common.properties.security;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 主配置项目  所有配置封装在此处
 * @author zhx
 * @create 2017-11-02 11:08
 **/
@Component
@ConfigurationProperties(prefix = "zhx.security")
public class SecurityProperties {

    private BrowserProperties browser = new BrowserProperties();

    private ValideDateCodeProperties valideDateCode = new ValideDateCodeProperties();

    private Auth2Properties auth2Properties = new Auth2Properties();

    public Auth2Properties getAuth2Properties() {
        return auth2Properties;
    }

    public void setAuth2Properties(Auth2Properties auth2Properties) {
        this.auth2Properties = auth2Properties;
    }

    public ValideDateCodeProperties getValideDateCode() {
        return valideDateCode;
    }

    public void setValideDateCode(ValideDateCodeProperties valideDateCode) {
        this.valideDateCode = valideDateCode;
    }

    public BrowserProperties getBrowser() {
        return browser;
    }

    public void setBrowser(BrowserProperties browser) {
        this.browser = browser;
    }
}
